package com.lonely.framework.websocket;

import com.lonely.common.core.domain.auth.LoginUser;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.security.Principal;

/**
 * @author : 黄志标
 * @date: 2025/8/21 10:55
 * @description: 自定义websocket用户信息
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CustomWebSocketPrincipal implements Principal {

    /**
     * 用户名
     */
    private String name;

    /**
     * 授权的token
     */
    private String token;

    /**
     * 提取的用户信息
     */
    private LoginUser loginUser;

}